﻿using System;
using Castle.DynamicProxy;

namespace Extensions.Interceptor.Cache.Keys;

public class DateTimeStrategy:BaseStrategy
{
    public override KeyStrategyEnum KeyStrategyEnum { get; set; } = KeyStrategyEnum.DateTime;
    public override string GetKey(IInvocation invocation)
    {
        return DateTime.Now.Ticks.ToString();
    }
}